home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Telephones.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  51.9 KB  |  1,477 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Telephones.a
  3. ;
  4. ;    Contains:    Telephone Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__TELEPHONES__') = 'UNDEFINED' THEN
  19. __TELEPHONES__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  25.     include 'Dialogs.a'
  26.     ENDIF
  27.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  28.     include 'Errors.a'
  29.     ENDIF
  30.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  31.     include 'Events.a'
  32.     ENDIF
  33.     IF &TYPE('__CTBUTILITIES__') = 'UNDEFINED' THEN
  34.     include 'CTBUtilities.a'
  35.     ENDIF
  36.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  37.     include 'Components.a'
  38.     ENDIF
  39.  
  40.  
  41. curTELVersion                    EQU        3                    ; current Telephone Manager version 
  42.                                                             ;    the chooseXXX symbols are defined in CTBUtilities.(pah) 
  43. telChooseDisaster                EQU        -2
  44. telChooseFailed                    EQU        -1
  45. telChooseAborted                EQU        0
  46. telChooseOKMinor                EQU        1
  47. telChooseOKMajor                EQU        2
  48. telChooseCancel                    EQU        3
  49. telChooseOKTermChanged            EQU        4
  50.     IF &TYPE('classTEL') = 'UNDEFINED' THEN
  51.  
  52.                                                             ; telephone tool file type 
  53. classTEL                        EQU        'vbnd'
  54.     ENDIF
  55.  
  56.                                                             ; PHYSICAL TERMINAL CONSTANTS 
  57.                                                             ; INDEPENDENT HANDSET CONSTANTS 
  58. telIndHSOnHook                    EQU        0                    ; independent handset on hook 
  59. telIndHSOffHook                    EQU        1                    ; independent handset off hook 
  60. telIndHSDisconnected            EQU        0                    ; handset disconnected from the line 
  61. telIndHSConnected                EQU        1                    ; handset connected to the line 
  62.                                                             ; HOOK STATE CONSTANTS 
  63. telHandset                        EQU        1                    ; handset hookswitch 
  64. telSpeakerphone                    EQU        2                    ; speakerphone 'on' switch 
  65. telDeviceOffHook                EQU        1                    ; device off hook 
  66. telDeviceOnHook                    EQU        0                    ; device on hook 
  67.                                                             ; VOLUME CONTROL CONSTANTS 
  68. telHandsetSpeakerVol            EQU        1                    ; volume of the handset speaker 
  69. telHandsetMicVol                EQU        2                    ; sensitivity of the handset mic 
  70. telSpeakerphoneVol                EQU        3                    ; speakerphone volume 
  71. telSpeakerphoneMicVol            EQU        4                    ; sensitivity of the spkrphone mic 
  72. telRingerVol                    EQU        5                    ; volume of the ringer 
  73. telBuiltinSPVol                    EQU        6                    ; volume of the built-in speakerphone 
  74. telBuiltinSPMicVol                EQU        7                    ; sensitivity of the built-in speakerphone mic 
  75. telVolSame                        EQU        0                    ; leaves the volume at previous level 
  76. telVolMin                        EQU        1                    ; turns volume down to minimum level, but not off 
  77. telVolMax                        EQU        100                    ; highest level allowed by the Telephone Manager 
  78. telVolStateSame                    EQU        0                    ; leaves device in same state 
  79. telVolStateOff                    EQU        1                    ; turns the device off , 
  80.                                                             ; but doesn't change the volume setting. 
  81.                                                             ; Use for mute functions. 
  82. telVolStateOn                    EQU        2                    ; turns the device on.  Volume setting is 
  83.                                                             ; the same as previously set.
  84.                                                             ; DISPLAY CONSTANTS 
  85. telNormalDisplayMode            EQU        1                    ; normal display mode 
  86. telInspectMode                    EQU        2                    ; inspect display mode 
  87. telMiscMode                        EQU        3                    ; miscellaneous display mode 
  88. telRetrieveMode                    EQU        4                    ; message retrieval mode 
  89. telDirectoryQueryMode            EQU        5                    ; electronic directory mode 
  90. telEntireDisplay                EQU        0                    ; entire Display 
  91.                                                             ; KEY PRESS CONSTANTS 
  92. telHangupKey                    EQU        1                    ; drop, or release, key pressed 
  93. telHoldKey                        EQU        2                    ; hold key pressed 
  94. telConferenceKey                EQU        3                    ; conference key pressed 
  95. telTransferKey                    EQU        4                    ; transfer key pressed 
  96. telForwardKey                    EQU        5                    ; call forward key pressed 
  97. telCallbackKey                    EQU        6                    ; call back key pressed 
  98. telDNDKey                        EQU        7                    ; do not disturb key pressed 
  99. telCallPickupKey                EQU        8                    ; call Pickup key pressed 
  100. telCallParkKey                    EQU        9                    ; call Park key pressed 
  101. telCallDeflectKey                EQU        10                    ; call Deflect key pressed 
  102. telVoiceMailAccessKey            EQU        11                    ; voice Mail Access key pressed 
  103. telCallRejectKey                EQU        12                    ; call Reject key pressed 
  104. telOtherKey                        EQU        16                    ; other key pressed 
  105. telKeyPadPress                    EQU        1                    ; key pressed on 12 digit keypad
  106. telFeatureKeyPress                EQU        2                    ; feature Key Pressed 
  107. telTerminalEnabled                EQU        0
  108. telTerminalDisabled                EQU        1
  109. telUnknown                        EQU        0                    ; unknown error 
  110. telTerminalHWDisconnected        EQU        1                    ; terminal hardware is disconnected 
  111. telDeviceDriverClosed            EQU        2                    ; device driver is closed 
  112.                                                             ; ALERT PATTERN 
  113. telPattern0                        EQU        0
  114. telPattern1                        EQU        1
  115. telPattern2                        EQU        2
  116. telPattern3                        EQU        3
  117. telPattern4                        EQU        4
  118. telPattern5                        EQU        5
  119. telPattern6                        EQU        6
  120. telPattern7                        EQU        7
  121. telPatternOff                    EQU        8
  122. telPatternUndefined                EQU        15                    ; DN TYPES 
  123. telAllDNs                        EQU        0                    ; counts all types of DNs 
  124. telInternalDNs                    EQU        1                    ; connected to PBX or other non-public switch 
  125. telInternalDNsOnly                EQU        2                    ; connected to PBX or other non-public switch 
  126.                                                             ; and able to place internal calls only 
  127. telExternalDNs                    EQU        3                    ; connected to public network 
  128. telDNTypeUnknown                EQU        4                    ; DN type unknown 
  129.                                                             ; DN USAGE 
  130. telDNNotUsed                    EQU        0                    ; DN is not used - onhook 
  131. telDNPOTSCall                    EQU        1                    ; DN used for POTs call 
  132. telDNFaxCall                    EQU        2                    ; DN used for fax call 
  133. telDNDataCall                    EQU        3                    ; DN used for data call 
  134. telDNAlerting                    EQU        4                    ; Incoming call at DN 
  135. telDNUnknownState                EQU        5                    ; DN is in unknown state 
  136.                                                             ; CALL FORWARDING TYPES 
  137. telForwardImmediate                EQU        1                    ; immediately forward calls 
  138. telForwardBusy                    EQU        2                    ; forward on Busy 
  139. telForwardNoAnswer                EQU        3                    ; forward on No answer 
  140. telForwardBusyNA                EQU        4                    ; forwarding for busy and no answer
  141. telForwardTypeUnknown            EQU        5                    ; type of forwarding is unknown 
  142.                                                             ; CALL FORWARDING MESSAGES 
  143. telForwardCleared                EQU        0                    ; forwarding has been cleared 
  144. telForwardEst                    EQU        1                    ; forwarding has been established
  145. telForwardFailed                EQU        2                    ; attempt to setup forwarding has failed
  146.                                                             ; DO NOT DISTURB TYPES 
  147. telDNDIntExt                    EQU        0                    ; do not disturb for all internal and external calls
  148. telDNDExternal                    EQU        1                    ; do not disturb for external calls only 
  149. telDNDInternal                    EQU        2                    ; do not disturb for internal calls only 
  150. telDNDNonIntercom                EQU        3                    ; do not disturb for all calls except intercom 
  151.                                                             ; DO NOT DISTURB MESSAGES 
  152. telDNDCleared                    EQU        0                    ; do not disturb has been cleared 
  153. telDNDEst                        EQU        1                    ; do not disturb has been established 
  154. telDNDFailed                    EQU        2                    ; attempt to setup do not disturb has failed 
  155.                                                             ; VOICE MAIL MESSAGES 
  156. telAllVoiceMessagesRead            EQU        0                    ; all messages have been read, none are  waiting 
  157.                                                             ; to be read 
  158. telNewVoiceMessage                EQU        1                    ; a new message has arrived or messages are waiting 
  159.                                                             ; for this DN 
  160.                                                             ; DNSELECT MESSAGE 
  161. telDNDeselected                    EQU        0                    ; DN has been deselected 
  162. telDNSelected                    EQU        1                    ; DN has been selected 
  163.                                                             ; CALL ORIGINATORS 
  164. telInternalCall                    EQU        0                    ; return nth internal CA 
  165. telExternalCall                    EQU        1                    ; return nth external CA 
  166. telUnknownCallOrigin            EQU        2                    ; unknown call type 
  167. telAllCallOrigins                EQU        2                    ; return nth CA internal or external 
  168.                                                             ; CALL TYPES 
  169. telVoiceMailAccessOut            EQU        -7
  170. telPageOut                        EQU        -6
  171. telIntercomOut                    EQU        -5
  172. telCallbackOut                    EQU        -4
  173. telPickup                        EQU        -3
  174. telParkRetrieve                    EQU        -2
  175. telNormalOut                    EQU        -1
  176. telUnknownCallType                EQU        0
  177. telNormalIn                        EQU        1
  178. telForwardedImmediate            EQU        2
  179. telForwardedBusy                EQU        3
  180. telForwardedNoAnswer            EQU        4
  181. telTransfer                        EQU        5
  182. telDeflected                    EQU        6
  183. telIntercepted                    EQU        7
  184. telDeflectRecall                EQU        8
  185. telParkRecall                    EQU        9
  186. telTransferredRecall            EQU        10
  187. telIntercomIn                    EQU        11
  188. telCallbackIn                    EQU        12                    ; DIAL TYPES 
  189. telDNDialable                    EQU        0                    ; this DN could be dialed via TELSetupCall 
  190. telDNNorthAmerican                EQU        1                    ; rmtDN is standard North America 10 digit number 
  191. telDNInternational                EQU        2                    ; rmtDN is an international number 
  192. telDNAlmostDialable                EQU        3                    ; rmtDN is almost dialable, 
  193.                                                             ; missing prefix such as 9 or 1 
  194. telDNUnknown                    EQU        15                    ; unknown whether DN is dialable 
  195.                                                             ; CALL PROGRESS MESSAGES 
  196. telCAPDialTone                    EQU        1                    ; dial tone 
  197. telCAPRinging                    EQU        2                    ; destination CA is alerting 
  198. telCAPDialing                    EQU        3                    ; dialing the other end 
  199. telCAPReorder                    EQU        4                    ; reorder 
  200. telCAPBusy                        EQU        5                    ; busy 
  201. telCAPRouted                    EQU        6                    ; call routed; rmtDN will hold the routing directory 
  202.                                                             ; number routeDN and routePartyName have been updated 
  203. telCAPRoutedOff                    EQU        7                    ; call routed off-network; no further progress will 
  204.                                                             ; be available 
  205. telCAPTimeout                    EQU        8                    ; call timed out 
  206. telCAPUpdate                    EQU        9                    ; name and rmtDN information has been updated 
  207. telCAPPrompt                    EQU        10                    ; the network is prompting for more information 
  208. telCAPWaiting                    EQU        11                    ; call is proceeding, but there is no response yet 
  209.                                                             ; from the destination 
  210. telCAPCPC                        EQU        12                    ; telephone tool detected CPC signal 
  211. telCAPNoDialTone                EQU        13                    ; dial tone not detected 
  212. telCAPUnknown                    EQU        15                    ; call progress state unknown 
  213. telCAPDialDisabled                EQU        16                    ; Blacklisting: Dial Disabled 
  214. telCAPBlacklistedNumber            EQU        17                    ; Blacklisting: Blacklisted Number 
  215. telCAPForbiddenNumber            EQU        18                    ; Blacklisting: Forbidden Number 
  216. telCAPModemGuardTime            EQU        19                    ; Modem Guard Timein force, unable to dial 
  217. telCAPLCDetected                EQU        20                    ; trying to dial a number while the handset is offhook 
  218. telCAPLostLC                    EQU        21                    ; trying manual dial or answer while handset not off hook 
  219.                                                             ; or also lost line current during dialing. 
  220.                                                             ; OUTGOING CALL MESSAGES 
  221. telPhysical                        EQU        0                    ; user lifted handset and initiated call 
  222. telProgrammatic                    EQU        1                    ; programmatic initiation of outgoing call 
  223.                                                             ; DISCONNECT MESSAGES 
  224. telLocalDisconnect                EQU        0                    ; local party, this user, responsible for disconnect 
  225. telRemoteDisconnect                EQU        1                    ; remote party responsible for disconnect 
  226.                                                             ; DISCONNECT TYPES 
  227. telCADNormal                    EQU        1                    ; normal disconnect 
  228. telCADBusy                        EQU        2                    ; remote user busy 
  229. telCADNoResponse                EQU        3                    ; remote not responding 
  230. telCADRejected                    EQU        4                    ; call rejected 
  231. telCADNumberChanged                EQU        5                    ; number changed 
  232. telCADInvalidDest                EQU        6                    ; invalid destination address 
  233. telCADFacilityRejected            EQU        7                    ; requested facility rejected 
  234. telCADUnobtainableDest            EQU        9                    ; destination not obtainable 
  235. telCADCongested                    EQU        10                    ; network congestion 
  236. telCADIncompatibleDest            EQU        11                    ; incompatible destination 
  237. telCADTimeout                    EQU        12                    ; call timed out 
  238. telCADUnknown                    EQU        15                    ; reason unknown 
  239.                                                             ; CONFERENCE MESSAGES 
  240. telConferencePrepFailed            EQU        0                    ; conference could not be prepared 
  241. telConferencePending            EQU        1                    ; conference prepared successfully 
  242. telConferenceEstFailed            EQU        2                    ; conference could not be established 
  243. telConferenceEst                EQU        3                    ; conference established 
  244.                                                             ; TRANSFER MESSAGES 
  245. telTransferPrepFailed            EQU        0                    ; transfer could not be prepared 
  246. telTransferPending                EQU        1                    ; transfer prepared successfully 
  247. telTransferEst                    EQU        2                    ; consult or blind xfer successful 
  248. telTransferFailed                EQU        3                    ; consult or blind xfer failed 
  249. telTransferred                    EQU        4                    ; message to originator of CA specifying 
  250.                                                             ; that call was transferred to rmtDN 
  251.                                                             ; HOLD MESSAGES 
  252. telHoldCleared                    EQU        0
  253. telHoldEst                        EQU        1
  254. telHoldFailed                    EQU        2                    ; RECEIVE DIGIT MESSAGES 
  255. telDigitAudible                    EQU        0
  256. telDigitNotAudible                EQU        1                    ; CALL PARK MESSAGES 
  257. telCallParkEst                    EQU        1                    ; call has been successfully parked 
  258. telCallParkRetrieveEst            EQU        2                    ; parked Call has been successfully retrieved 
  259. telCallParkFailed                EQU        3                    ; attempt to setup call park has failed 
  260. telCallParkRetrieveFailed        EQU        4                    ; attempt to retrieve parked call failed 
  261. telCallParkRecall                EQU        5                    ; call park has been recalled 
  262.                                                             ; CALL BACK MESSAGES 
  263. telCallbackCleared                EQU        0                    ; call back has been cleared 
  264. telCallbackEst                    EQU        1                    ; call back has been established 
  265. telCallbackNowAvail                EQU        2                    ; call can be called back with TELCallBackNow 
  266.                                                             ; if CA is zero, else call IS calling back on CA 
  267. telCallbackFailed                EQU        3                    ; attempt to setup callback has failed 
  268. telCallbackDesired                EQU        4                    ; a user has called this terminal, received no 
  269.                                                             ; answer and desires this terminal to call it 
  270.                                                             ; back 
  271. telCallbackDesiredCleared        EQU        5                    ; call back for no answer no longer desired 
  272. telCalledback                    EQU        6                    ; callback has occurred successfully 
  273.                                                             ; CALL REJECT MESSAGES 
  274. telCallRejectFailed                EQU        0                    ; attempt to reject call has failed 
  275. telCallRejectEst                EQU        1                    ; call successfully rejected 
  276. telCallRejected                    EQU        2                    ; message to originator that call was rejected 
  277.                                                             ; CALL DEFLECT MESSAGES 
  278. telCallDeflectFailed            EQU        0                    ; attempt to deflect call has failed 
  279. telCallDeflectEst                EQU        1                    ; call successfully deflected 
  280. telCallDeflectRecall            EQU        2                    ; deflected call has been recalled 
  281. telCallDeflected                EQU        3                    ; message to originator that call was deflected 
  282.                                                             ; to rmtDN 
  283. telAutoDeflectImmediate            EQU        4                    ; a call was automatically deflected from this 
  284.                                                             ; terminal as a result of immediate call 
  285.                                                             ; forwarding 
  286. telAutoDeflectBusy                EQU        5                    ; a call was automatically deflected from this 
  287.                                                             ; terminal as a result of call forwarding on busy 
  288. telAutoDeflectNoAnswer            EQU        6                    ; a call was automatically deflected from this 
  289.                                                             ; terminal as a result of call forwarding on 
  290.                                                             ; no answer 
  291.                                                             ; CONFERENCE SPLIT MESSAGES 
  292. telConferenceSplitFailed        EQU        0                    ; CA could not be split 
  293. telConferenceSplitEst            EQU        1                    ; CA split successfully 
  294.                                                             ; CONFERENCE DROP MESSAGES 
  295. telConferenceDropFailed            EQU        0                    ; CA could not be dropped 
  296. telConferenceDropped            EQU        1                    ; CA dropped successfully 
  297.                                                             ; CALL PICKUP MESSAGES 
  298. telCallPickupEst                EQU        0                    ; call pickup was successful 
  299. telCallPickupFailed                EQU        1                    ; call pickup failed 
  300. telCallPickedUp                    EQU        2                    ; message to originator that call was picked 
  301.                                                             ; up at a different DN 
  302.                                                             ; PAGING MESSAGES 
  303. telPageEst                        EQU        0                    ; paging was successful 
  304. telPageComplete                    EQU        1                    ; paging activity completed 
  305. telPageFailed                    EQU        2                    ; paging failed 
  306.                                                             ; INTERCOM MESSAGES 
  307. telIntercomEst                    EQU        0                    ; intercom was successful 
  308. telIntercomComplete                EQU        1                    ; intercom activity completed 
  309. telIntercomFailed                EQU        2                    ; intercom failed 
  310.                                                             ; MODEM TONE MESSAGES 
  311. telModemToneDetected            EQU        0                    ; modem tone was detected 
  312. telModemToneCleared                EQU        1                    ; modem tone went away 
  313.                                                             ; FAX TONE MESSAGES 
  314. telFaxToneDetected                EQU        0                    ; fax tone was detected 
  315. telFaxToneCleared                EQU        1                    ; fax tone went away 
  316.                                                             ; IN USE MESSAGES 
  317. telInUsePrivate                    EQU        0                    ; MADN is in use and can't be accessed 
  318. telInUseCanAccess                EQU        1                    ; MADN is in use, and others can access it 
  319.                                                             ; and join in 
  320. telInUseCanMakePrivate            EQU        2                    ; MADN is in use, but available for any one 
  321.                                                             ; person to access 
  322. telInUseCleared                    EQU        3                    ; MADN is no longer in use 
  323.                                                             ; CALL APPEARANCE STATES 
  324. telCAIdleState                    EQU        0                    ; a call doesn't exist at this time 
  325. telCAInUseState                    EQU        1                    ; the call is active but at another terminal 
  326. telCAOfferState                    EQU        2                    ; a call is being offered to the terminal 
  327. telCAQueuedState                EQU        3                    ; a call is being queued at this terminal 
  328. telCAAlertingState                EQU        4                    ; a call is alerting at the terminal 
  329. telCADialToneState                EQU        5                    ; initiated outgoing call has dialtone 
  330. telCADialingState                EQU        6                    ; initiated outgoing call is dialing 
  331. telCAWaitingState                EQU        7                    ; initiated outgoing call is waiting for 
  332.                                                             ; response from destination 
  333. telCARingingState                EQU        8                    ; the outgoing call is ringing. 
  334. telCABusyState                    EQU        9                    ; destination is busy or can't be reached 
  335. telCAHeldState                    EQU        10                    ; call has been put on hold by this terminal 
  336. telCAConferencedState            EQU        11                    ; this CA is part of a conference now 
  337. telCAActiveState                EQU        12                    ; the call is active and parties are free 
  338.                                                             ; to exchange data 
  339. telCAReorderState                EQU        13                    ; CA is in a reorder state 
  340. telCAConferencedHeldState        EQU        14                    ; CA is a conference call in a held state 
  341. telCAUnknownState                EQU        15                    ; the call state is unknown 
  342.                                                             ; TERMINAL MESSAGE EVENTMASKS 
  343. telTermHookMsg                    EQU        $00000001            ; the hookswitch state has changed 
  344. telTermKeyMsg                    EQU        $00000002            ; a phone pad key has been depressed 
  345. telTermVolMsg                    EQU        $00000004            ; volume setting has changed 
  346. telTermDisplayMsg                EQU        $00000008            ; display has changed 
  347. telTermEnableMsg                EQU        $00000010            ; terminal has become enabled 
  348. telTermOpenMsg                    EQU        $00000020            ; terminal has been opened 
  349. telTermCloseMsg                    EQU        $00000040            ; terminal is shutting down 
  350. telTermResetMsg                    EQU        $00000080            ; terminal has been reset 
  351. telTermErrorMsg                    EQU        $00000100            ; hard equipment error 
  352. telTermIndHSStateChgMsg            EQU        $00000200            ; change in handset state from inacive to 
  353.                                                             ; active or vice versa 
  354. telTermIndHSConnectMsg            EQU        $00000400            ; independent handset connection has been changed 
  355. telTermKeyImmMsg                EQU        $00000800            ; immidiate arrival of phone pad key 
  356. telTermVolStateMsg                EQU        $00001000            ; volume state has changed 
  357. telTermOtherMsg                    EQU        $80000000            ; vendor defined error 
  358. telAllTermMsgs                    EQU        $00001FFF            ; mask to all non tool specific terminal events 
  359.                                                             ; DN MESSAGE EVENTMASK CONSTANTS 
  360. telDNForwardMsg                    EQU        $00000001            ; forward feature activity 
  361. telDNDNDMsg                        EQU        $00000002            ; do not disturb feature activity 
  362. telDNVoiceMailMsg                EQU        $00000004            ; message has arrived for this DN 
  363. telDNSelectedMsg                EQU        $00000008            ; DN has been selected or deselected 
  364. telDNOtherMsg                    EQU        $80000000            ; a custom message for use by tools 
  365. telAllDNMsgs                    EQU        $0000000F            ; mask to all non tool specific dn events 
  366.                                                             ; CA MESSAGE EVENTMASK CONSTANTS 
  367. telCAAlertingMsg                EQU        $00000001            ; CA is alerting  
  368. telCAOfferMsg                    EQU        $00000002            ; CA is being offered a call 
  369. telCAProgressMsg                EQU        $00000004            ; call progress info for this CA 
  370. telCAOutgoingMsg                EQU        $00000008            ; CA is initiating an outgoing call 
  371. telCADisconnectMsg                EQU        $00000010            ; CA disconnected (dropped or rmt disc 
  372. telCAActiveMsg                    EQU        $00000020            ; CA is active and voice/data is free 
  373.                                                             ; to flow end to end 
  374. telCAConferenceMsg                EQU        $00000040            ; conference activity on CA 
  375. telCATransferMsg                EQU        $00000080            ; transfer feature activity 
  376. telCAHoldMsg                    EQU        $00000100            ; hold feature activity 
  377. telCADigitsMsg                    EQU        $00000200            ; remote signaling digits arrived 
  378. telCACallParkMsg                EQU        $00000400            ; CA call park feature activity 
  379. telCACallbackMsg                EQU        $00000800            ; CA call back feature activity  
  380. telCARejectMsg                    EQU        $00001000            ; CA is rejected 
  381. telCADeflectMsg                    EQU        $00002000            ; CA is deflected 
  382. telCAForwardMsg                    EQU        $00004000            ; CA is forwarded to this DN  
  383. telCAConferenceSplitMsg            EQU        $00008000            ; conference split activity  
  384. telCAConferenceDropMsg            EQU        $00010000            ; conference drop activity  
  385. telCAQueuedMsg                    EQU        $00020000            ; CA has been queued  
  386. telCAInUseMsg                    EQU        $00040000            ; CA is in use  
  387. telCACallPickupMsg                EQU        $00080000            ; CA pickup activity 
  388. telCAPagingMsg                    EQU        $00100000            ; CA paging activity 
  389. telCAIntercomMsg                EQU        $00200000            ; CA intercom activity 
  390. telCAModemToneMsg                EQU        $00400000            ; modem tones detected 
  391. telCAFaxToneMsg                    EQU        $00800000            ; fax tones detected 
  392. telCAIdleMsg                    EQU        $01000000            ; CA is in idle state 
  393. telCASuccessiveAlertMsg            EQU        $02000000            ; phone is alerting, one per ring 
  394. telCAUserUserInfoMsg            EQU        $04000000            ; user to user information has arrrived 
  395.                                                             ; for this CA 
  396. telCAHandOffMsg                    EQU        $08000000            ; CA is ready for hand-off 
  397. telCAVoiceDetectedMsg            EQU        $10000000            ; voice Detect related event 
  398. telCASilenceDetectedMsg            EQU        $20000000            ; silence Detect related event 
  399. telCADigitsImmMsg                EQU        $40000000            ; immidiate arrival of remote signaling digits 
  400. telCAOtherMsg                    EQU        $80000000            ; tool specific CA message 
  401. telAllCAMsgs                    EQU        $7FFFFFFF            ; mask to all non tool specific CA events 
  402. ; typedef OSErr                         TELErr
  403.  
  404. ; typedef unsigned long                 TELFlags
  405.  
  406.  
  407. telNoMenus                        EQU        $00010000            ; tells tool not to display any custom menus 
  408. telQuiet                        EQU        $00020000            ; tells tool not to display any dialog boxes or alerts 
  409. telConfigChanged                EQU        $00040000            ; notifies application that the config has changed 
  410. ; typedef unsigned long                 TELFeatureFlags
  411.  
  412.  
  413. pcmAvail                        EQU        $00000001            ; true if PCM voice data accessible 
  414. hasHandset                        EQU        $00000002            ; true if a phone handset is attached  
  415. hasSpeakerphone                    EQU        $00000004            ; true if a 2 way speakerphone is attached 
  416. canOnHookDial                    EQU        $00000008            ; can on-hook dial 
  417. hasRinger                        EQU        $00000010            ; terminal has its own ringer 
  418. canSetDisplay                    EQU        $00000020            ; application can write to the display 
  419. hasKeypad                        EQU        $00000040            ; attached phone has standard 12 key pad 
  420. hasVideo                        EQU        $00000080            ; terminal has a videophone 
  421. hasOther                        EQU        $00000100            ; reserved for future use 
  422. crossDNConference                EQU        $00000200            ; can perform cross-DN conferences 
  423. hasSubaddress                    EQU        $00000400            ; attached network supports subaddressing 
  424. hasUserUserInfo                    EQU        $00000800            ; network supports user-to-user info 
  425. hasHandsetSoundStreams            EQU        $00001000            ; sound streams are supported on the handset 
  426. hasIndHandset                    EQU        $00002000            ; handset can be accessed independently of the phone line 
  427. hasBuiltinSpeakerphone            EQU        $00004000            ; speaker and microphone of the Mac can be used 
  428.  
  429. TELTermRecord            RECORD 0
  430. tRef                     ds.w    1                ; offset: $0 (0)
  431. featureFlags             ds.l    1                ; offset: $2 (2)
  432. handsetSpeakerVol         ds.w    1                ; offset: $6 (6)
  433. handsetMicVol             ds.w    1                ; offset: $8 (8)
  434. speakerphoneVol             ds.w    1                ; offset: $A (10)
  435. speakerphoneMicVol         ds.w    1                ; offset: $C (12)
  436. ringerVol                 ds.w    1                ; offset: $E (14)
  437. otherVol                 ds.w    1                ; offset: $10 (16)
  438. ringerTypes                 ds.w    1                ; offset: $12 (18)
  439. hasDisplay                 ds.w    1                ; offset: $14 (20)
  440. displayRows                 ds.w    1                ; offset: $16 (22)
  441. numDNs                     ds.w    1                ; offset: $18 (24)
  442. maxAllocCA                 ds.w    1                ; offset: $1A (26)
  443. curAllocCA                 ds.w    1                ; offset: $1C (28)
  444. builtinSpeakerVol         ds.w    1                ; offset: $1E (30)
  445. builtinSpeakerMicVol     ds.w    1                ; offset: $20 (32)
  446. reserved                 ds.l    1                ; offset: $22 (34)
  447. sizeof                     EQU *                    ; size:   $26 (38)
  448.                         ENDR
  449. ; typedef struct TELTermRecord *        TELTermPtr
  450.  
  451. TELRecord                RECORD 0
  452. procID                     ds.w    1                ; offset: $0 (0)
  453. flags                     ds.l    1                ; offset: $2 (2)
  454. reserved                 ds.w    1                ; offset: $6 (6)
  455. refCon                     ds.l    1                ; offset: $8 (8)
  456. userData                 ds.l    1                ; offset: $C (12)
  457. defproc                     ds.l    1                ; offset: $10 (16)
  458. config                     ds.l    1                ; offset: $14 (20)
  459. oldConfig                 ds.l    1                ; offset: $18 (24)
  460. pTELTerm                 ds.l    1                ; offset: $1C (28)
  461. telPrivate                 ds.l    1                ; offset: $20 (32)
  462. reserved1                 ds.l    1                ; offset: $24 (36)
  463. reserved2                 ds.l    1                ; offset: $28 (40)
  464. pTELTermSize             ds.l    1                ; offset: $2C (44)
  465. version                     ds.w    1                ; offset: $30 (48)
  466. sizeof                     EQU *                    ; size:   $32 (50)
  467.                         ENDR
  468. ; typedef struct TELRecord *            TELPtr
  469.  
  470. ; typedef TELPtr *                        TELHandle
  471.  
  472. ; typedef unsigned long                 TELDNFeatureFlags
  473.  
  474.  
  475. dndSub                            EQU        $00000001            ; do not disturb subscribed 
  476. dndAvail                        EQU        $00000002            ; do not disturb available 
  477. dndActive                        EQU        $00000004            ; do not disturb active 
  478. voiceMailAccessSub                EQU        $00000008            ; message waiting subscribed 
  479. voiceMailAccessAvail            EQU        $00000010            ; message waiting available 
  480. voiceMailAccessActive            EQU        $00000020            ; message waiting active 
  481. pagingSub                        EQU        $00000040            ; paging is subscribed 
  482. pagingAvail                        EQU        $00000080            ; paging is available 
  483. pagingActive                    EQU        $00000100            ; paging is active 
  484. intercomSub                        EQU        $00000200            ; intercom is subscribed 
  485. intercomAvail                    EQU        $00000400            ; intercom is available 
  486. intercomActive                    EQU        $00000800            ; intercom is active 
  487. dnSelectSub                        EQU        $00001000            ; DN select is subscribed 
  488. dnSelectAvail                    EQU        $00002000            ; DN select is available 
  489. dnSelectActive                    EQU        $00004000            ; DN is selected 
  490. callPickupSub                    EQU        $00008000            ; call pickup is subscribed 
  491. callPickupAvail                    EQU        $00010000            ; call pickup is available 
  492. dnInUse                            EQU        $00020000            ; a CA is allocated for this DN 
  493. logicalDN                        EQU        $00040000            ; this DN is not on this terminal 
  494. dnAccessible                    EQU        $00080000            ; commands can be sent to this DN 
  495. canInitiate                        EQU        $00100000            ; an outgoing CA can be initiated 
  496. voiceMessageWaiting                EQU        $00200000            ; voice mail waiting for this dn 
  497. hasDNSoundStreams                EQU        $00400000            ; sound streams are supported on this DN 
  498. autoAnswerAvail                    EQU        $00800000            ; AutoAnswer is set for this DN 
  499. autoAnswerActive                EQU        $01000000            ; AutoAnswer is currently applied to CA on this DN 
  500. tollSaverAvail                    EQU        $02000000            ; tollSaver is set for this DN 
  501. tollSaverActive                    EQU        $04000000            ; tollSaver is currently applied to CA on this DN 
  502. ; typedef unsigned long                 TELDNForwardFlags
  503.  
  504.  
  505. immediateForwardSub                EQU        $00000001            ; immediate call forward subscribed 
  506. immediateForwardAvail            EQU        $00000002            ; immediate call forward available 
  507. immediateForwardActive            EQU        $00000004            ; immediate call forward active 
  508. busyForwardSub                    EQU        $00000008            ; forward on busy subscribed 
  509. busyForwardAvail                EQU        $00000010            ; forward on busy available 
  510. busyForwardActive                EQU        $00000020            ; forward on busy active 
  511. noAnswerForwardSub                EQU        $00000040            ; no answer call forward subscribed 
  512. noAnswerForwardAvail            EQU        $00000080            ; no answer call forward available 
  513. noAnswerForwardActive            EQU        $00000100            ; no answer call forward active 
  514. busyNAForwardSub                EQU        $00000200            ; busy & no answer call forward subscribed 
  515. busyNAForwardAvail                EQU        $00000400            ; busy & no answer call forward available 
  516. busyNAForwardActive                EQU        $00000800            ; busy & no answer call forward active 
  517.  
  518. TELDNRecord                RECORD 0
  519. dnRef                     ds.w    1                ; offset: $0 (0)
  520. dn                         ds.l    1                ; offset: $2 (2)
  521. dnPartyName                 ds.l    1                ; offset: $6 (6)
  522. dnSubaddress             ds.l    1                ; offset: $A (10)
  523. hTEL                     ds.l    1                ; offset: $E (14)
  524. maxAllocCA                 ds.w    1                ; offset: $12 (18)
  525. curAllocCA                 ds.w    1                ; offset: $14 (20)
  526. dnType                     ds.w    1                ; offset: $16 (22)
  527. featureFlags             ds.l    1                ; offset: $18 (24)
  528. numPageIDs                 ds.w    1                ; offset: $1C (28)
  529. numIntercomIDs             ds.w    1                ; offset: $1E (30)
  530. numPickupIDs             ds.w    1                ; offset: $20 (32)
  531. forwardFlags             ds.l    1                ; offset: $22 (34)
  532. iForwardDN                 ds.l    1                ; offset: $26 (38)
  533. iForwardSubaddress         ds.l    1                ; offset: $2A (42)
  534. iForwardPartyName         ds.l    1                ; offset: $2E (46)
  535. bForwardDN                 ds.l    1                ; offset: $32 (50)
  536. bForwardSubaddress         ds.l    1                ; offset: $36 (54)
  537. bForwardPartyName         ds.l    1                ; offset: $3A (58)
  538. naForwardDN                 ds.l    1                ; offset: $3E (62)
  539. naForwardSubaddress         ds.l    1                ; offset: $42 (66)
  540. naForwardPartyName         ds.l    1                ; offset: $46 (70)
  541. naForwardRings             ds.w    1                ; offset: $4A (74)
  542. telDNPrivate             ds.l    1                ; offset: $4C (76)
  543. refCon                     ds.l    1                ; offset: $50 (80)
  544. userData                 ds.l    1                ; offset: $54 (84)
  545. reserved                 ds.l    1                ; offset: $58 (88)
  546. sizeof                     EQU *                    ; size:   $5C (92)
  547.                         ENDR
  548. ; typedef struct TELDNRecord *            TELDNPtr
  549.  
  550. ; typedef TELDNPtr *                    TELDNHandle
  551.  
  552. ; typedef unsigned long                 TELCAFeatureFlags
  553.  
  554.  
  555. holdSub                            EQU        $00000001            ; hold subscribed  
  556. holdAvail                        EQU        $00000002            ; hold available  
  557. holdActive                        EQU        $00000004            ; hold active  
  558. conferenceSub                    EQU        $00000008            ; conference subscribed 
  559. conferenceAvail                    EQU        $00000010            ; conference available 
  560. conferenceActive                EQU        $00000020            ; conference active  
  561. conferenceDropSub                EQU        $00000040            ; conference drop subscribed  
  562. conferenceDropAvail                EQU        $00000080            ; a call to TELDrop will drop this 
  563.                                                             ; CA only from a conference 
  564. conferenceSplitSub                EQU        $00000100            ; conference split subscribed  
  565. conferenceSplitAvail            EQU        $00000200            ; conference split available for this CA 
  566. numToConferenceRequired            EQU        $00000400            ; the number of CAs to be conferenced is 
  567.                                                             ; required in TELConfPrep  
  568. transferSub                        EQU        $00000800            ; transfer subscribed  
  569. transferAvail                    EQU        $00001000            ; transfer available  
  570. transferActive                    EQU        $00002000            ; transfer active 
  571. caRelated                        EQU        $00004000            ; this CA is the specified in some other CA's relatedCA field
  572. ; typedef unsigned long                 TELCAOtherFeatures
  573.  
  574.  
  575. callbackSub                        EQU        $00000001            ; call back subscribed 
  576. callbackAvail                    EQU        $00000002            ; call back available 
  577. callbackActive                    EQU        $00000004            ; call back active  
  578. callbackClearSub                EQU        $00000008            ; call back clearing subscribed 
  579. callbackNowSub                    EQU        $00000010            ; call back now subscribed 
  580. callbackNowAvail                EQU        $00000020            ; call back now available  
  581. callbackBusy                    EQU        $00000040            ; call back on busy 
  582. callbackNoAnswer                EQU        $00000080            ; call back on no answer 
  583. callbackReturnsRef                EQU        $00000100            ; call back returns a reference 
  584. parkSub                            EQU        $00000200            ; call park subscribed 
  585. parkAvail                        EQU        $00000400            ; call park available 
  586. parkActive                        EQU        $00000800            ; call park active 
  587. parkRetrieveSub                    EQU        $00001000            ; call park retrieve subscribed 
  588. parkRetrieveWithID                EQU        $00002000            ; retrieve parked calls with IDs 
  589. parkWithReturnedID                EQU        $00004000            ; park call to a specific remote ID 
  590. parkWithGivenID                    EQU        $00040000            ; for switch that requires ID for parking 
  591. rejectable                        EQU        $00008000            ; CA is rejectable  
  592. deflectable                        EQU        $00010000            ; CA is deflectable  
  593. acceptable                        EQU        $00020000            ; CA is acceptable 
  594. voiceDetected                    EQU        $00080000            ; voice has been detected on this CA incase of 
  595.                                                             ; an incoming call 
  596. callAnswdTSRings                EQU        $00100000            ; incoimng call was answered on TollSaver rings 
  597.  
  598.  
  599. ; typedef TELCARecord *                    TELCAPtr
  600.  
  601. ; typedef TELCAPtr *                    TELCAHandle
  602.  
  603. TELCARecord                RECORD 0
  604. caRef                     ds.w    1                ; offset: $0 (0)
  605. hTELDN                     ds.l    1                ; offset: $2 (2)
  606. hTEL                     ds.l    1                ; offset: $6 (6)
  607. caState                     ds.w    1                ; offset: $A (10)
  608. relatedCA                 ds.l    1                ; offset: $C (12)
  609. connectTime                 ds.l    1                ; offset: $10 (16)        ;  can be used by application to keep track of connect time 
  610. intExt                     ds.w    1                ; offset: $14 (20)
  611. callType                 ds.w    1                ; offset: $16 (22)
  612. dialType                 ds.w    1                ; offset: $18 (24)
  613. bearerType                 ds.w    1                ; offset: $1A (26)
  614. rate                     ds.w    1                ; offset: $1C (28)
  615. rmtDN                     ds.l    1                ; offset: $1E (30)
  616. rmtPartyName             ds.l    1                ; offset: $22 (34)
  617. rmtSubaddress             ds.l    1                ; offset: $26 (38)
  618. routeDN                     ds.l    1                ; offset: $2A (42)
  619. routePartyName             ds.l    1                ; offset: $2E (46)
  620. routeSubaddress             ds.l    1                ; offset: $32 (50)
  621. priority                 ds.w    1                ; offset: $36 (54)
  622. conferenceLimit             ds.w    1                ; offset: $38 (56)
  623. featureFlags             ds.l    1                ; offset: $3A (58)
  624. otherFeatures             ds.l    1                ; offset: $3E (62)
  625. telCAPrivate             ds.l    1                ; offset: $42 (66)
  626. refCon                     ds.l    1                ; offset: $46 (70)
  627. userData                 ds.l    1                ; offset: $4A (74)
  628. reserved                 ds.l    1                ; offset: $4E (78)
  629. sizeof                     EQU *                    ; size:   $52 (82)
  630.                         ENDR
  631. ;  Constants for HandleType in structure above 
  632.  
  633. telHandleType                    EQU        0                    ; feature requires a terminal handle 
  634. telDNHandleType                    EQU        1                    ; feature requires a DN handle 
  635. telCAHandleType                    EQU        2                    ; feature requires a CA handle 
  636. FeatureList                RECORD 0
  637. featureID                 ds.w    1                ; offset: $0 (0)
  638. featureName                 ds.l    1                ; offset: $2 (2)
  639. handleType                 ds.w    1                ; offset: $6 (6)
  640. nextFeature                 ds.l    1                ; offset: $8 (8)
  641. sizeof                     EQU *                    ; size:   $C (12)
  642.                         ENDR
  643. ; typedef struct FeatureList *            FeatureListPtr
  644.  
  645. ;  CA MESSAGE STRUCTURES FOR MSGINFO 
  646. CAGenericMsgRec            RECORD 0
  647. rmtDN                     ds.l    1                ; offset: $0 (0)
  648. rmtName                     ds.l    1                ; offset: $4 (4)
  649. rmtSubaddress             ds.l    1                ; offset: $8 (8)
  650. dialType                 ds.w    1                ; offset: $C (12)
  651. sizeof                     EQU *                    ; size:   $E (14)
  652.                         ENDR
  653. CAUserUserInfoMsgRec    RECORD 0
  654. userUserInfo             ds.l    1                ; offset: $0 (0)
  655. sizeof                     EQU *                    ; size:   $4 (4)
  656.                         ENDR
  657. CAConfMsgRec            RECORD 0
  658. relatedCA                 ds.l    1                ; offset: $0 (0)
  659. sizeof                     EQU *                    ; size:   $4 (4)
  660.                         ENDR
  661. CATransfMsgRec            RECORD 0
  662. rmtDN                     ds.l    1                ; offset: $0 (0)
  663. rmtName                     ds.l    1                ; offset: $4 (4)
  664. rmtSubaddress             ds.l    1                ; offset: $8 (8)
  665. dialType                 ds.w    1                ; offset: $C (12)
  666. prepCA                     ds.l    1                ; offset: $E (14)
  667. sizeof                     EQU *                    ; size:   $12 (18)
  668.                         ENDR
  669. ;
  670. ; pascal TELErr InitTEL(void )
  671. ;
  672.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  673.         IMPORT_CFM_FUNCTION InitTEL
  674.     ENDIF
  675.  
  676. ;
  677. ; pascal TELErr TELGetInfo(TELHandle hTEL)
  678. ;
  679.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  680.         IMPORT_CFM_FUNCTION TELGetInfo
  681.     ENDIF
  682.  
  683. ;
  684. ; pascal TELErr TELOpenTerm(TELHandle hTEL)
  685. ;
  686.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  687.         IMPORT_CFM_FUNCTION TELOpenTerm
  688.     ENDIF
  689.  
  690. ;
  691. ; pascal TELErr TELResetTerm(TELHandle hTEL)
  692. ;
  693.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  694.         IMPORT_CFM_FUNCTION TELResetTerm
  695.     ENDIF
  696.  
  697. ;
  698. ; pascal TELErr TELCloseTerm(TELHandle hTEL)
  699. ;
  700.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  701.         IMPORT_CFM_FUNCTION TELCloseTerm
  702.     ENDIF
  703.  
  704. ;
  705. ; pascal TELErr TELTermMsgHand(TELHandle hTEL, long eventMask, TelephoneTermMsgUPP msgProc, long globals)
  706. ;
  707.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  708.         IMPORT_CFM_FUNCTION TELTermMsgHand
  709.     ENDIF
  710.  
  711. ;
  712. ; pascal TELErr TELClrTermMsgHand(TELHandle hTEL, TelephoneTermMsgUPP msgProc)
  713. ;
  714.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  715.         IMPORT_CFM_FUNCTION TELClrTermMsgHand
  716.     ENDIF
  717.  
  718. ;
  719. ; pascal TELErr TELTermEventsSupp(TELHandle hTEL, long *eventMask)
  720. ;
  721.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  722.         IMPORT_CFM_FUNCTION TELTermEventsSupp
  723.     ENDIF
  724.  
  725. ;
  726. ; pascal short TELGetProcID(Str255 name)
  727. ;
  728.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  729.         IMPORT_CFM_FUNCTION TELGetProcID
  730.     ENDIF
  731.  
  732. ;
  733. ; pascal TELHandle TELNew(short procID, TELFlags flags, long refCon, long userData)
  734. ;
  735.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  736.         IMPORT_CFM_FUNCTION TELNew
  737.     ENDIF
  738.  
  739. ;
  740. ; pascal TELHandle TELNewWithResult(short procID, TELFlags flags, long refCon, long userData, TELErr *error)
  741. ;
  742.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  743.         IMPORT_CFM_FUNCTION TELNewWithResult
  744.     ENDIF
  745.  
  746. ;
  747. ; pascal TELErr TELDefault(Ptr *theConfig, short procID, Boolean allocate)
  748. ;
  749.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  750.         IMPORT_CFM_FUNCTION TELDefault
  751.     ENDIF
  752.  
  753. ;
  754. ; pascal Boolean TELValidate(TELHandle hTEL)
  755. ;
  756.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  757.         IMPORT_CFM_FUNCTION TELValidate
  758.     ENDIF
  759.  
  760. ;
  761. ; pascal Ptr TELGetConfig(TELHandle hTEL)
  762. ;
  763.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  764.         IMPORT_CFM_FUNCTION TELGetConfig
  765.     ENDIF
  766.  
  767. ;
  768. ; pascal short TELSetConfig(TELHandle hTEL, Ptr thePtr)
  769. ;
  770.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  771.         IMPORT_CFM_FUNCTION TELSetConfig
  772.     ENDIF
  773.  
  774. ;
  775. ; pascal TELErr TELChoose(TELHandle *hTEL, Point where, TelephoneChooseIdleProcPtr idleProc)
  776. ;
  777.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  778.         IMPORT_CFM_FUNCTION TELChoose
  779.     ENDIF
  780.  
  781. ;
  782. ; pascal Handle TELSetupPreflight(short procID, long *magicCookie)
  783. ;
  784.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  785.         IMPORT_CFM_FUNCTION TELSetupPreflight
  786.     ENDIF
  787.  
  788. ;
  789. ; pascal void TELSetupSetup(short procID, Ptr theConfig, short count, DialogPtr theDialog, long *magicCookie)
  790. ;
  791.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  792.         IMPORT_CFM_FUNCTION TELSetupSetup
  793.     ENDIF
  794.  
  795. ;
  796. ; pascal Boolean TELSetupFilter(short procID, Ptr theConfig, short count, DialogPtr theDialog, EventRecord *theEvent, short *theItem, long *magicCookie)
  797. ;
  798.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  799.         IMPORT_CFM_FUNCTION TELSetupFilter
  800.     ENDIF
  801.  
  802. ;
  803. ; pascal void TELSetupItem(short procID, Ptr theConfig, short count, DialogPtr theDialog, short *theItem, long *magicCookie)
  804. ;
  805.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  806.         IMPORT_CFM_FUNCTION TELSetupItem
  807.     ENDIF
  808.  
  809. ;
  810. ; pascal void TELSetupCleanup(short procID, Ptr theConfig, short count, DialogPtr theDialog, long *magicCookie)
  811. ;
  812.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  813.         IMPORT_CFM_FUNCTION TELSetupCleanup
  814.     ENDIF
  815.  
  816. ;
  817. ; pascal void TELSetupXCleanup(short procID, Ptr theConfig, short count, DialogPtr theDialog, Boolean OKed, long *magicCookie)
  818. ;
  819.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  820.         IMPORT_CFM_FUNCTION TELSetupXCleanup
  821.     ENDIF
  822.  
  823. ;
  824. ; pascal void TELSetupPostflight(short procID)
  825. ;
  826.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  827.         IMPORT_CFM_FUNCTION TELSetupPostflight
  828.     ENDIF
  829.  
  830. ;
  831. ; pascal TELErr TELDispose(TELHandle hTEL)
  832. ;
  833.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  834.         IMPORT_CFM_FUNCTION TELDispose
  835.     ENDIF
  836.  
  837. ;
  838. ; pascal short TELCountDNs(TELHandle hTEL, short dnType, Boolean physical)
  839. ;
  840.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  841.         IMPORT_CFM_FUNCTION TELCountDNs
  842.     ENDIF
  843.  
  844. ;
  845. ; pascal TELErr TELDNLookupByIndex(TELHandle hTEL, short dnType, Boolean physical, short index, TELDNHandle *hTELDN)
  846. ;
  847.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  848.         IMPORT_CFM_FUNCTION TELDNLookupByIndex
  849.     ENDIF
  850.  
  851. ;
  852. ; pascal TELErr TELDNLookupByName(TELHandle hTEL, ConstStr255Param DN, TELDNHandle *hTELDN)
  853. ;
  854.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  855.         IMPORT_CFM_FUNCTION TELDNLookupByName
  856.     ENDIF
  857.  
  858. ;
  859. ; pascal TELErr TELDNSelect(TELDNHandle hTELDN, Boolean select)
  860. ;
  861.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  862.         IMPORT_CFM_FUNCTION TELDNSelect
  863.     ENDIF
  864.  
  865. ;
  866. ; pascal TELErr TELDNDispose(TELDNHandle hTELDN)
  867. ;
  868.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  869.         IMPORT_CFM_FUNCTION TELDNDispose
  870.     ENDIF
  871.  
  872. ;
  873. ; pascal TELErr TELGetDNInfo(TELDNHandle hTELDN)
  874. ;
  875.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  876.         IMPORT_CFM_FUNCTION TELGetDNInfo
  877.     ENDIF
  878.  
  879. ;
  880. ; pascal TELErr TELGetDNFlags(TELDNHandle hTELDN, long *dnFeatureFlags, long *dnForwardFlags)
  881. ;
  882.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  883.         IMPORT_CFM_FUNCTION TELGetDNFlags
  884.     ENDIF
  885.  
  886. ;
  887. ; pascal TELErr TELDNMsgHand(TELDNHandle hTELDN, Boolean allDNs, long eventMask, TelephoneDNMsgProcPtr msgProc, long globals)
  888. ;
  889.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  890.         IMPORT_CFM_FUNCTION TELDNMsgHand
  891.     ENDIF
  892.  
  893. ;
  894. ; pascal TELErr TELClrDNMsgHand(TELDNHandle hTELDN, TelephoneDNMsgProcPtr msgProc)
  895. ;
  896.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  897.         IMPORT_CFM_FUNCTION TELClrDNMsgHand
  898.     ENDIF
  899.  
  900. ;
  901. ; pascal TELErr TELDNEventsSupp(TELDNHandle hTELDN, long *eventMask)
  902. ;
  903.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  904.         IMPORT_CFM_FUNCTION TELDNEventsSupp
  905.     ENDIF
  906.  
  907. ;
  908. ; pascal short TELCountCAs(TELDNHandle hTELDN, short internalExternal)
  909. ;
  910.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  911.         IMPORT_CFM_FUNCTION TELCountCAs
  912.     ENDIF
  913.  
  914. ;
  915. ; pascal TELErr TELCALookup(TELDNHandle hTELDN, short internalExternal, short index, TELCAHandle *hTELCA)
  916. ;
  917.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  918.         IMPORT_CFM_FUNCTION TELCALookup
  919.     ENDIF
  920.  
  921. ;
  922. ; pascal TELErr TELCADispose(TELCAHandle hTELCA)
  923. ;
  924.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  925.         IMPORT_CFM_FUNCTION TELCADispose
  926.     ENDIF
  927.  
  928. ;
  929. ; pascal TELErr TELGetCAState(TELCAHandle hTELCA, short *state)
  930. ;
  931.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  932.         IMPORT_CFM_FUNCTION TELGetCAState
  933.     ENDIF
  934.  
  935. ;
  936. ; pascal TELErr TELGetCAFlags(TELCAHandle hTELCA, long *caFeatureFlags, long *caOtherFeatures)
  937. ;
  938.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  939.         IMPORT_CFM_FUNCTION TELGetCAFlags
  940.     ENDIF
  941.  
  942. ;
  943. ; pascal TELErr TELGetCAInfo(TELCAHandle hTELCA)
  944. ;
  945.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  946.         IMPORT_CFM_FUNCTION TELGetCAInfo
  947.     ENDIF
  948.  
  949. ;
  950. ; pascal TELErr TELCAMsgHand(TELDNHandle hTELDN, long eventMask, TelephoneCAMsgProcPtr msgProc, long globals)
  951. ;
  952.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  953.         IMPORT_CFM_FUNCTION TELCAMsgHand
  954.     ENDIF
  955.  
  956. ;
  957. ; pascal TELErr TELClrCAMsgHand(TELDNHandle hTELDN, TelephoneCAMsgProcPtr msgProc)
  958. ;
  959.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  960.         IMPORT_CFM_FUNCTION TELClrCAMsgHand
  961.     ENDIF
  962.  
  963. ;
  964. ; pascal TELErr TELCAEventsSupp(TELDNHandle hTELDN, long *eventMask)
  965. ;
  966.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  967.         IMPORT_CFM_FUNCTION TELCAEventsSupp
  968.     ENDIF
  969.  
  970. ;
  971. ; pascal TELErr TELSetupCall(TELDNHandle hTELDN, TELCAHandle *hTELCA, ConstStr255Param destDN, ConstStr255Param destName, ConstStr255Param destSubaddress, ConstStr255Param userUserInfo, short bearerType, short rate)
  972. ;
  973.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  974.         IMPORT_CFM_FUNCTION TELSetupCall
  975.     ENDIF
  976.  
  977. ;
  978. ; pascal TELErr TELConnect(TELCAHandle hTELCA)
  979. ;
  980.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  981.         IMPORT_CFM_FUNCTION TELConnect
  982.     ENDIF
  983.  
  984. ;
  985. ; pascal TELErr TELDialDigits(TELCAHandle hTELCA, ConstStr255Param digits)
  986. ;
  987.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  988.         IMPORT_CFM_FUNCTION TELDialDigits
  989.     ENDIF
  990.  
  991. ;
  992. ; pascal TELErr TELAcceptCall(TELCAHandle hTELCA)
  993. ;
  994.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  995.         IMPORT_CFM_FUNCTION TELAcceptCall
  996.     ENDIF
  997.  
  998. ;
  999. ; pascal TELErr TELRejectCall(TELCAHandle hTELCA, short reason)
  1000. ;
  1001.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1002.         IMPORT_CFM_FUNCTION TELRejectCall
  1003.     ENDIF
  1004.  
  1005. ;
  1006. ; pascal TELErr TELDeflectCall(TELCAHandle hTELCA, ConstStr255Param rmtDN, ConstStr255Param rmtName, ConstStr255Param rmtSubaddress)
  1007. ;
  1008.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1009.         IMPORT_CFM_FUNCTION TELDeflectCall
  1010.     ENDIF
  1011.  
  1012. ;
  1013. ; pascal TELErr TELAnswerCall(TELCAHandle hTELCA)
  1014. ;
  1015.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1016.         IMPORT_CFM_FUNCTION TELAnswerCall
  1017.     ENDIF
  1018.  
  1019. ;
  1020. ; pascal TELErr TELDrop(TELCAHandle hTELCA, ConstStr255Param userUserInfo)
  1021. ;
  1022.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1023.         IMPORT_CFM_FUNCTION TELDrop
  1024.     ENDIF
  1025.  
  1026. ;
  1027. ; pascal TELErr TELHold(TELCAHandle hTELCA)
  1028. ;
  1029.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1030.         IMPORT_CFM_FUNCTION TELHold
  1031.     ENDIF
  1032.  
  1033. ;
  1034. ; pascal TELErr TELRetrieve(TELCAHandle hTELCA)
  1035. ;
  1036.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1037.         IMPORT_CFM_FUNCTION TELRetrieve
  1038.     ENDIF
  1039.  
  1040. ;
  1041. ; pascal TELErr TELConferencePrep(TELCAHandle hTELCA1, TELCAHandle hTELCA2, short numToConference)
  1042. ;
  1043.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1044.         IMPORT_CFM_FUNCTION TELConferencePrep
  1045.     ENDIF
  1046.  
  1047. ;
  1048. ; pascal TELErr TELConferenceEstablish(TELCAHandle hTELCA1, TELCAHandle hTELCA2)
  1049. ;
  1050.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1051.         IMPORT_CFM_FUNCTION TELConferenceEstablish
  1052.     ENDIF
  1053.  
  1054. ;
  1055. ; pascal TELErr TELConferenceSplit(TELCAHandle hTELCA)
  1056. ;
  1057.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1058.         IMPORT_CFM_FUNCTION TELConferenceSplit
  1059.     ENDIF
  1060.  
  1061. ;
  1062. ; pascal TELErr TELTransferPrep(TELCAHandle hTELCA1, TELCAHandle hTELCA2)
  1063. ;
  1064.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1065.         IMPORT_CFM_FUNCTION TELTransferPrep
  1066.     ENDIF
  1067.  
  1068. ;
  1069. ; pascal TELErr TELTransferEstablish(TELCAHandle hTELCA1, TELCAHandle hTELCA2)
  1070. ;
  1071.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1072.         IMPORT_CFM_FUNCTION TELTransferEstablish
  1073.     ENDIF
  1074.  
  1075. ;
  1076. ; pascal TELErr TELTransferBlind(TELCAHandle hTELCA, ConstStr255Param rmtDN, ConstStr255Param rmtName, ConstStr255Param rmtSubaddress)
  1077. ;
  1078.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1079.         IMPORT_CFM_FUNCTION TELTransferBlind
  1080.     ENDIF
  1081.  
  1082. ;
  1083. ; pascal TELErr TELForwardSet(TELDNHandle hTELDN, ConstStr255Param forwardDN, ConstStr255Param forwardName, ConstStr255Param forwardSubaddress, short forwardType, short numrings)
  1084. ;
  1085.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1086.         IMPORT_CFM_FUNCTION TELForwardSet
  1087.     ENDIF
  1088.  
  1089. ;
  1090. ; pascal TELErr TELForwardClear(TELDNHandle hTELDN, short forwardType)
  1091. ;
  1092.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1093.         IMPORT_CFM_FUNCTION TELForwardClear
  1094.     ENDIF
  1095.  
  1096. ;
  1097. ; pascal TELErr TELCallbackSet(TELCAHandle hTELCA, short *callbackRef)
  1098. ;
  1099.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1100.         IMPORT_CFM_FUNCTION TELCallbackSet
  1101.     ENDIF
  1102.  
  1103. ;
  1104. ; pascal TELErr TELCallbackClear(TELHandle hTEL, short callbackRef)
  1105. ;
  1106.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1107.         IMPORT_CFM_FUNCTION TELCallbackClear
  1108.     ENDIF
  1109.  
  1110. ;
  1111. ; pascal TELErr TELCallbackNow(TELCAHandle hTELCA, short callbackRef)
  1112. ;
  1113.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1114.         IMPORT_CFM_FUNCTION TELCallbackNow
  1115.     ENDIF
  1116.  
  1117. ;
  1118. ; pascal TELErr TELDNDSet(TELDNHandle hTELDN, short dndType)
  1119. ;
  1120.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1121.         IMPORT_CFM_FUNCTION TELDNDSet
  1122.     ENDIF
  1123.  
  1124. ;
  1125. ; pascal TELErr TELDNDClear(TELDNHandle hTELDN, short dndType)
  1126. ;
  1127.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1128.         IMPORT_CFM_FUNCTION TELDNDClear
  1129.     ENDIF
  1130.  
  1131. ;
  1132. ; pascal TELErr TELCallPickup(TELCAHandle hTELCA, ConstStr255Param pickupDN, short pickupGroupID)
  1133. ;
  1134.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1135.         IMPORT_CFM_FUNCTION TELCallPickup
  1136.     ENDIF
  1137.  
  1138. ;
  1139. ; pascal TELErr TELParkCall(TELCAHandle hTELCA, StringPtr *parkRetrieveID, ConstStr255Param parkID)
  1140. ;
  1141.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1142.         IMPORT_CFM_FUNCTION TELParkCall
  1143.     ENDIF
  1144.  
  1145. ;
  1146. ; pascal TELErr TELRetrieveParkedCall(TELCAHandle hTELCA, ConstStr255Param parkRetrieveID)
  1147. ;
  1148.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1149.         IMPORT_CFM_FUNCTION TELRetrieveParkedCall
  1150.     ENDIF
  1151.  
  1152. ;
  1153. ; pascal TELErr TELVoiceMailAccess(TELCAHandle hTELCA)
  1154. ;
  1155.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1156.         IMPORT_CFM_FUNCTION TELVoiceMailAccess
  1157.     ENDIF
  1158.  
  1159. ;
  1160. ; pascal TELErr TELPaging(TELCAHandle hTELCA, short pageID)
  1161. ;
  1162.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1163.         IMPORT_CFM_FUNCTION TELPaging
  1164.     ENDIF
  1165.  
  1166. ;
  1167. ; pascal TELErr TELIntercom(TELCAHandle hTELCA, short intercomID)
  1168. ;
  1169.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1170.         IMPORT_CFM_FUNCTION TELIntercom
  1171.     ENDIF
  1172.  
  1173. ;
  1174. ; pascal TELErr TELOtherFeatureList(TELHandle hTEL, FeatureListPtr *fList)
  1175. ;
  1176.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1177.         IMPORT_CFM_FUNCTION TELOtherFeatureList
  1178.     ENDIF
  1179.  
  1180. ;
  1181. ; pascal TELErr TELOtherFeatureImplement(TELHandle hTEL, Handle theHandle, short featureID)
  1182. ;
  1183.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1184.         IMPORT_CFM_FUNCTION TELOtherFeatureImplement
  1185.     ENDIF
  1186.  
  1187. ;
  1188. ; pascal TELErr TELToolFunctions(TELHandle hTEL, short msgcode, Boolean *supportsIt)
  1189. ;
  1190.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1191.         IMPORT_CFM_FUNCTION TELToolFunctions
  1192.     ENDIF
  1193.  
  1194. ;
  1195. ; pascal TELErr TELOtherFunction(TELHandle hTEL, Ptr paramblock, long size)
  1196. ;
  1197.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1198.         IMPORT_CFM_FUNCTION TELOtherFunction
  1199.     ENDIF
  1200.  
  1201. ;
  1202. ; pascal TELErr TELGetHooksw(TELHandle hTEL, short hookType, Boolean *offHook)
  1203. ;
  1204.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1205.         IMPORT_CFM_FUNCTION TELGetHooksw
  1206.     ENDIF
  1207.  
  1208. ;
  1209. ; pascal TELErr TELSetHooksw(TELHandle hTEL, short hookType, Boolean offHook)
  1210. ;
  1211.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1212.         IMPORT_CFM_FUNCTION TELSetHooksw
  1213.     ENDIF
  1214.  
  1215. ;
  1216. ; pascal TELErr TELGetVolume(TELHandle hTEL, short volType, short *level, short *volState)
  1217. ;
  1218.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1219.         IMPORT_CFM_FUNCTION TELGetVolume
  1220.     ENDIF
  1221.  
  1222. ;
  1223. ; pascal TELErr TELSetVolume(TELHandle hTEL, short volType, short *level, short volState)
  1224. ;
  1225.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1226.         IMPORT_CFM_FUNCTION TELSetVolume
  1227.     ENDIF
  1228.  
  1229. ;
  1230. ; pascal TELErr TELAlert(TELHandle hTEL, short *level, short alertPattern)
  1231. ;
  1232.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1233.         IMPORT_CFM_FUNCTION TELAlert
  1234.     ENDIF
  1235.  
  1236. ;
  1237. ; pascal TELErr TELGetDisplay(TELHandle hTEL, short index, short *displayMode, StringPtr *text)
  1238. ;
  1239.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1240.         IMPORT_CFM_FUNCTION TELGetDisplay
  1241.     ENDIF
  1242.  
  1243. ;
  1244. ; pascal TELErr TELSetDisplay(TELHandle hTEL, short index, short displayMode, ConstStr255Param text)
  1245. ;
  1246.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1247.         IMPORT_CFM_FUNCTION TELSetDisplay
  1248.     ENDIF
  1249.  
  1250. ;
  1251. ; pascal void TELIdle(TELHandle hTEL)
  1252. ;
  1253.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1254.         IMPORT_CFM_FUNCTION TELIdle
  1255.     ENDIF
  1256.  
  1257. ;
  1258. ; pascal void TELActivate(TELHandle hTEL, Boolean activate)
  1259. ;
  1260.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1261.         IMPORT_CFM_FUNCTION TELActivate
  1262.     ENDIF
  1263.  
  1264. ;
  1265. ; pascal void TELResume(TELHandle hTEL, Boolean resume)
  1266. ;
  1267.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1268.         IMPORT_CFM_FUNCTION TELResume
  1269.     ENDIF
  1270.  
  1271. ;
  1272. ; pascal Boolean TELMenu(TELHandle hTEL, short menuID, short item)
  1273. ;
  1274.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1275.         IMPORT_CFM_FUNCTION TELMenu
  1276.     ENDIF
  1277.  
  1278. ;
  1279. ; pascal void TELEvent(TELHandle hTEL, const EventRecord *theEvent)
  1280. ;
  1281.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1282.         IMPORT_CFM_FUNCTION TELEvent
  1283.     ENDIF
  1284.  
  1285. ;
  1286. ; pascal void TELGetToolName(short procID, Str255 name)
  1287. ;
  1288.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1289.         IMPORT_CFM_FUNCTION TELGetToolName
  1290.     ENDIF
  1291.  
  1292. ;
  1293. ; pascal Handle TELGetVersion(TELHandle hTEL)
  1294. ;
  1295.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1296.         IMPORT_CFM_FUNCTION TELGetVersion
  1297.     ENDIF
  1298.  
  1299. ;
  1300. ; pascal short TELGetTELVersion(void )
  1301. ;
  1302.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1303.         IMPORT_CFM_FUNCTION TELGetTELVersion
  1304.     ENDIF
  1305.  
  1306. ;
  1307. ; pascal TELErr TELIntlToEnglish(TELHandle hTEL, Ptr inputPtr, Ptr *outputPtr, short language)
  1308. ;
  1309.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1310.         IMPORT_CFM_FUNCTION TELIntlToEnglish
  1311.     ENDIF
  1312.  
  1313. ;
  1314. ; pascal TELErr TELEnglishToIntl(TELHandle hTEL, Ptr inputPtr, Ptr *outputPtr, short language)
  1315. ;
  1316.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1317.         IMPORT_CFM_FUNCTION TELEnglishToIntl
  1318.     ENDIF
  1319.  
  1320. ;
  1321. ; pascal TELErr TELGetDNSoundInput(TELDNHandle hTELDN, Str255 deviceName)
  1322. ;
  1323.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1324.         IMPORT_CFM_FUNCTION TELGetDNSoundInput
  1325.     ENDIF
  1326.  
  1327. ;
  1328. ; pascal TELErr TELDisposeDNSoundInput(TELDNHandle hTELDN, ConstStr255Param deviceName)
  1329. ;
  1330.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1331.         IMPORT_CFM_FUNCTION TELDisposeDNSoundInput
  1332.     ENDIF
  1333.  
  1334. ;
  1335. ; pascal TELErr TELGetDNSoundOutput(TELDNHandle hTELDN, Component *SndOut)
  1336. ;
  1337.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1338.         IMPORT_CFM_FUNCTION TELGetDNSoundOutput
  1339.     ENDIF
  1340.  
  1341. ;
  1342. ; pascal TELErr TELDisposeDNSoundOutput(TELDNHandle hTELDN, Component SndOut)
  1343. ;
  1344.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1345.         IMPORT_CFM_FUNCTION TELDisposeDNSoundOutput
  1346.     ENDIF
  1347.  
  1348. ;
  1349. ; pascal TELErr TELGetHSSoundInput(TELHandle termHand, Str255 deviceName)
  1350. ;
  1351.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1352.         IMPORT_CFM_FUNCTION TELGetHSSoundInput
  1353.     ENDIF
  1354.  
  1355. ;
  1356. ; pascal TELErr TELDisposeHSSoundInput(TELHandle termHand, ConstStr255Param deviceName)
  1357. ;
  1358.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1359.         IMPORT_CFM_FUNCTION TELDisposeHSSoundInput
  1360.     ENDIF
  1361.  
  1362. ;
  1363. ; pascal TELErr TELGetHSSoundOutput(TELHandle termHand, Component *SndOut)
  1364. ;
  1365.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1366.         IMPORT_CFM_FUNCTION TELGetHSSoundOutput
  1367.     ENDIF
  1368.  
  1369. ;
  1370. ; pascal TELErr TELDisposeHSSoundOutput(TELHandle termHand, Component SndOut)
  1371. ;
  1372.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1373.         IMPORT_CFM_FUNCTION TELDisposeHSSoundOutput
  1374.     ENDIF
  1375.  
  1376. ;
  1377. ; pascal TELErr TELDNSetAutoAnswer(TELDNHandle hTELDN, Boolean AutoAnswerOn)
  1378. ;
  1379.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1380.         IMPORT_CFM_FUNCTION TELDNSetAutoAnswer
  1381.     ENDIF
  1382.  
  1383. ;
  1384. ; pascal TELErr TELDNTollSaverControl(TELDNHandle hTELDN, Boolean QuickAnswer)
  1385. ;
  1386.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1387.         IMPORT_CFM_FUNCTION TELDNTollSaverControl
  1388.     ENDIF
  1389.  
  1390. ;
  1391. ; pascal TELErr TELSetIndHSConnect(TELHandle termHand, Boolean Connect)
  1392. ;
  1393.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1394.         IMPORT_CFM_FUNCTION TELSetIndHSConnect
  1395.     ENDIF
  1396.  
  1397. ;
  1398. ; pascal TELErr TELGetIndHSConnect(TELHandle termHand, Boolean *Connect)
  1399. ;
  1400.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1401.         IMPORT_CFM_FUNCTION TELGetIndHSConnect
  1402.     ENDIF
  1403.  
  1404. ;
  1405. ; pascal TELErr TELCAVoiceDetect(TELCAHandle hTELCA, Boolean VoiceDetectOn)
  1406. ;
  1407.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1408.         IMPORT_CFM_FUNCTION TELCAVoiceDetect
  1409.     ENDIF
  1410.  
  1411. ;
  1412. ; pascal TELErr TELCASilenceDetect(TELCAHandle hTELCA, Boolean DetectOn, long Period)
  1413. ;
  1414.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1415.         IMPORT_CFM_FUNCTION TELCASilenceDetect
  1416.     ENDIF
  1417.  
  1418. ;
  1419. ; pascal TELErr TELGetTelNewErr(void )
  1420. ;
  1421.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1422.         IMPORT_CFM_FUNCTION TELGetTelNewErr
  1423.     ENDIF
  1424.  
  1425. ;
  1426. ; pascal TELErr TELDNSetDTMF(TELDNHandle hTELDN, Boolean dtmfOn)
  1427. ;
  1428.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1429.         IMPORT_CFM_FUNCTION TELDNSetDTMF
  1430.     ENDIF
  1431.  
  1432. ;
  1433. ; pascal TELErr TELDNGetDTMF(TELDNHandle hTELDN, Boolean *dtmfOn)
  1434. ;
  1435.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1436.         IMPORT_CFM_FUNCTION TELDNGetDTMF
  1437.     ENDIF
  1438.  
  1439. ;
  1440. ; pascal TELErr TELHSSetDTMF(TELHandle termHand, Boolean dtmfOn)
  1441. ;
  1442.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1443.         IMPORT_CFM_FUNCTION TELHSSetDTMF
  1444.     ENDIF
  1445.  
  1446. ;
  1447. ; pascal TELErr TELHSGetDTMF(TELHandle termHand, Boolean *dtmfOn)
  1448. ;
  1449.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1450.         IMPORT_CFM_FUNCTION TELHSGetDTMF
  1451.     ENDIF
  1452.  
  1453. ;
  1454. ; pascal TELErr TELGetDNStatus(TELDNHandle hTELDN, long *inUse)
  1455. ;
  1456.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1457.         IMPORT_CFM_FUNCTION TELGetDNStatus
  1458.     ENDIF
  1459.  
  1460. ;
  1461. ; pascal TELErr TELGetDNProgressDet(TELDNHandle hTELDN, long selector, Boolean *prgDetOn)
  1462. ;
  1463.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1464.         IMPORT_CFM_FUNCTION TELGetDNProgressDet
  1465.     ENDIF
  1466.  
  1467. ;
  1468. ; pascal TELErr TELSetDNProgressDet(TELDNHandle hTELDN, long selector, Boolean prgDetOn)
  1469. ;
  1470.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1471.         IMPORT_CFM_FUNCTION TELSetDNProgressDet
  1472.     ENDIF
  1473.  
  1474.  
  1475.     ENDIF ; __TELEPHONES__ 
  1476.  
  1477.